package com.project.bean;

import java.util.List;

/**
 * 服务实体类
 */
public class ServeBean {
    /**服务ID*/
    private int id;
    /**服务名称*/
    private String name;
    /**服务排期时间*/
    private String time;
    /**服务适用规格*/
    private String size;
    /**服务规格*/
    private String grade;
    /**服务价格*/
    private int price;
    /**服务图片*/
    private String img;
    /**服务状态*/
    private String state = "上架";
    /**所属门店对象*/
    private StoreBean store;
    /**服务评价平均分*/
    private Double score;
    /**评分集合*/
    private List<ReviewBean> reviewList;

    public ServeBean() {
    }

    public ServeBean(String name, String time, String size, String grade, int price, String img, int storeId) {
        this.name = name;
        this.time = time;
        this.size = size;
        this.grade = grade;
        this.price = price;
        this.img = img;
        this.store = new StoreBean();
        this.store.setId(storeId);
    }

    public List<ReviewBean> getReviewList() {
        return reviewList;
    }

    public void setReviewList(List<ReviewBean> reviewList) {
        this.reviewList = reviewList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "ServeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", time='" + time + '\'' +
                ", size='" + size + '\'' +
                ", grade='" + grade + '\'' +
                ", price=" + price +
                ", img='" + img + '\'' +
                ", state='" + state + '\'' +
                ", store=" + store +
                ", score=" + score +
                ", reviewList=" + reviewList +
                '}' + "\n";
    }
}
